package com.buba.system.pojo;

import java.util.List;

/**
 *系统菜单
 */
public class Menu {
    private Integer id;
    private String title;
    private String menu_url;
    private Integer menu_pid;
    //一对多  一个符集菜单下存在多个子菜单
    private List<Menu> children;


    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", menu_url='" + menu_url + '\'' +
                ", menu_pid=" + menu_pid +
                ", children=" + children +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMenu_url() {
        return menu_url;
    }

    public void setMenu_url(String menu_url) {
        this.menu_url = menu_url;
    }

    public Integer getMenu_pid() {
        return menu_pid;
    }

    public void setMenu_pid(Integer menu_pid) {
        this.menu_pid = menu_pid;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }
}
